from utils.api import API
from django.conf.urls import url
from notice.forms import *
from notice.views import views_notice

baseUrl = "/api/notice/"

addNoticeAPI = API(AddNoticeForm, method='POST', moduleUrl='publish/', urlPrefix=baseUrl)
getNoticeAPI = API(GetNoticeForm, method='POST', moduleUrl='get/', urlPrefix=baseUrl)
noticeContentAPI = API(NoticeContentForm, method='POST', moduleUrl='content/', urlPrefix=baseUrl)
optionNoticeAPI = API(OptionNoticeForm, method='POST', moduleUrl='option/', urlPrefix=baseUrl)

urlpatterns = [
    url(addNoticeAPI.moduleUrl, views_notice.addNotice),
    url(getNoticeAPI.moduleUrl, views_notice.getNotice),
    url(noticeContentAPI.moduleUrl, views_notice.noticeContent),
    url(optionNoticeAPI.moduleUrl, views_notice.optionNotice),
]
